﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using WebNext.Domain.Entities;

namespace WebNext.DataAccess.Mappings
{
	public class CommentMap : EntityMap<Comment>
	{
		public CommentMap()
		{
			this.Table("Comments");

			this.Map(c => c.Author);
			this.Map(c => c.Content);
			this.Map(c => c.Rank);
			this.References<Entry>(c => c.Entry, "EntryId").Cascade.None();
		}
	}
}
